package com.megaspacevr.mapper;

import com.megaspacevr.entity.TimeSlots;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 时间段表-30分钟小场次 Mapper 接口
 * </p>
 *
 * @author yezi
 * @since 2025-06-17
 */
@Mapper
public interface TimeSlotsMapper extends BaseMapper<TimeSlots> {

    /**
     * 批量获取时间段的预约数量
     * @param timeSlotIds 时间段ID列表
     * @return 时间段ID与预约数量的映射
     */
    Map<Long, Integer> getBatchBookedCount(@Param("timeSlotIds") List<Long> timeSlotIds);
}
